package com.hailian.fintech.hlfinanceserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-23
 */
@Data
@Accessors(chain = true)
@TableName("hl_jiaoyi")
public class Jiaoyi extends Model<Jiaoyi> {

    private static final long serialVersionUID = 1L;

    /**
     * 交易流水表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 营业报表id
     */
    private String  yingyeId;
    /**
     * 银行卡表id
     */
    private Integer bank_id;
    /**
     * 发起交易日期
     */
    private Date created;
    /**
     * 执行交易日期
     */
    private Date doing_time;
    /**
     * 支付截止日期
     */
    private Date end_time;
    /**
     * 交易结果
     */
    private String result;
    /**
     * 支付方式表id
     */
    private Integer paytype_id;

    private BigDecimal price;//金额
    @TableField(exist = false)
    private String bankNumber;
    @TableField(exist = false)
    private String bank;
    @TableField(exist = false)
    private Integer rate;
    @TableField(exist = false)
    private Integer serviceCharge;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
